Comments (4)
Same here. Replacing 'split("\n")' with 'splitlines()' fixes the issue.
from robotframework-lint.
Shot in the dark: would that file have DOS-style end-of-lines (or worse, mixed-style end-of-lines)?
Depending on how the file is read (which encoding, and whether it's opened in binary mode), Python's universal newlines might not strip \r
at the right time. Although to @ltdemian 's point, it's probably splitlines that should be used, rather than split("\n")
.
from robotframework-lint.
@fperrin file-encoding: UTF-8, Pycharm on Windows 10, line-separator: CRLF, robotframework-lint=1.0
- With lint=0.9 there is no difference in results between changing line-separator: CRLF, LF and CR
- With lint=1.0 I am getting different results for every possible setting of line-separator: CR, LF and CRLF
from robotframework-lint.
I think you're right, my mention of mixed EOL is not relevant. That's a problem in rflint, and we should use splitlines. That's an easy enough change, but unfortunately rflint isn't seeing much activity these days.
from robotframework-lint.
Related Issues (20)
- Comments included in testcase tags
- Comments included in keyword settings
- Multiple instances of RfLint will result in duplicate rules
- Add support for Tasks type (new in RF 3.1)
- Comment before continuation not handled well by statements()
- rflint does not work with Robot Framework 3.2.0 HOT 13
- PyPi release for new fixes HOT 1
- ImportError: cannot import name 'FileReader' from 'robot.utils' HOT 2
- Incorrect duplicate Metadata error
- InvalidTable, Unknown table name 'Comments' HOT 2
- VSCode integration HOT 1
- Calling rflint with argumentfile succeeds but rflint is not actually run HOT 1
- Movie CircleCI builds to Github Actions HOT 7
- Does the folder "site-rules" only allow under the rflint folder?
- Tasks type itself isn't accepted suite HOT 1
- Unable to access the keywords and variables used within a testcase
- Could this tool check for errors likes "Multiple keywords with name XXX found" HOT 1
- xUnit output
- imp library no longer supported in python 3.12 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotframework-lint.